import Vue from 'vue'
import Router from 'vue-router'
//import HelloWorld from '@/components/HelloWorld'
import Header from '@/components/header-nav'
import shareModel from '@/components/share-model' 
import payModel from '@/components/pay-model' 
import playSlip from '@/components/play-slip'  //底部播放器
import player from "@/components/player"; //全屏播放器
import index from '@/pages/index/index'
import allType from '@/pages/index/all-type'
import sonList from '@/pages/index/son-list'
import editAddress from '@/pages/index/edit-address'
import sonDetail from '@/pages/index/son-detail'
import lookShow from '@/pages/index/look-show'
import videoList from '@/pages/index/video-list'
import orderList from '@/pages/index/order-list'
import videoDetail from '@/pages/index/video-detail'
import welfare from '@/pages/index/welfare'
import seaElection from '@/pages/index/sea-election'
import seaActivity from '@/pages/index/sea-activity'
import comment from '@/pages/index/comment'
import commentReply from '@/pages/index/comment-reply'
import signUp from '@/pages/index/sign-up'
import myActivity from '@/pages/index/my-activity'
import buyFlower from '@/pages/index/buy-flower'
import buyDetail from '@/pages/index/buy-detail'
import musicVip from '@/pages/index/music-vip'
import confirmOrder from '@/pages/index/confirm-order'
import searchSinger from '@/pages/index/search-singer'
import singleBuy from '@/pages/index/single-buy'
import matchDetail from '@/pages/index/match-detail'
import batchOperation from '@/pages/index/batch-operation'
import mySupport from '@/pages/index/my-support'
import albumDetail from '@/pages/index/album-detail' //专辑详情页面
import songSheet from '@/pages/index/song-sheet' //歌单页面
import itemList from '@/pages/index/component/item-list'
import singer from '@/pages/index/component/singer'
import rank from '@/pages/index/component/rank'
import songMore from "@/pages/index/component/song-more"; 
import progressBar from '@/pages/index/component/progressBar'
import scroll from '@/pages/index/component/scroll'
import search from '@/pages/index/search'
import searchResult from '@/pages/index/search-result'
import findMusic from '@/pages/index/find-music'
import radio from '@/pages/index/radio'
import radiotypes from '@/pages/index/radiotypes'
import types from '@/pages/index/types'
import radioranking from '@/pages/index/radioranking'
import radionewlist from '@/pages/index/radionewlist'
import radiotimelist from '@/pages/index/radiotimelist'
import radiodetail from '@/pages/index/radiodetail'
import radiotadaygood from '@/pages/index/radiotadaygood'
import radiorecommended from '@/pages/index/radiorecommended'
import ticket from '@/pages/index/ticket'

import mall from '@/pages/mall/mall'

import friend from '@/pages/friend/friend'
import publicDynamic from '@/pages/friend/publicDynamic'
import cates from '@/pages/friend/cates'
import choosemusic from '@/pages/friend/choosemusic'
import aita from '@/pages/friend/aita'
import dynamicDetails from '@/pages/friend/dynamicDetails'
import forwarding from '@/pages/friend/forwarding'


import mine from '@/pages/mine/mine'
import mycollection from '@/pages/mine/mycollection'
import recentlyplay from '@/pages/mine/recentlyplay'
import myradio from '@/pages/mine/myradio'
import hostapply from '@/pages/mine/hostapply'
import localmusic from '@/pages/mine/localmusic'
import localsingersong from '@/pages/mine/localsingersong' 
import editSheet from '@/pages/mine/edit-sheet'
import chooseTips from '@/pages/mine/choose-tips'


import account from '@/pages/account/account'
import signin from '@/pages/account/signin'
import signinRecord from '@/pages/account/signin-record'
import mylevel from '@/pages/account/mylevel'
import levelprivilege from '@/pages/account/levelprivilege'
import news from '@/pages/account/news'
import singerhome from '@/pages/account/singerhome'
import userinfo from '@/pages/account/userinfo'
import setname from '@/pages/account/setname'
import setsignature from '@/pages/account/setsignature'
import setaccount from '@/pages/account/setaccount'
import mydynamic from '@/pages/account/mydynamic'
import myattention from '@/pages/account/myattention'
import addattention from '@/pages/account/addattention'
import knowmen from '@/pages/account/knowmen'
import musicmen from '@/pages/account/musicmen'
import myfansi from '@/pages/account/myfansi'
import mymusic from '@/pages/account/mymusic'
import bemusicmen from '@/pages/account/bemusicmen'
import musicmenlivein from '@/pages/account/musicmenlivein'
import mywelfare from '@/pages/account/mywelfare'
import mycomments from '@/pages/account/mycomments'
import vipcenter from '@/pages/account/vipcenter'
import openvip from '@/pages/account/openvip'
import setting from '@/pages/account/setting'
import about from '@/pages/account/about'



// 登录模块
import login from '@/pages/login/login'
import forget from '@/pages/login/forget'
import register from '@/pages/login/register'

Vue.component('Header',Header);
Vue.component('playSlip',playSlip)
Vue.component('itemList',itemList)
Vue.component('progressBar',progressBar)
Vue.component('scroll',scroll)
Vue.component('player',player)
Vue.component('songMore',songMore)
Vue.component('shareModel',shareModel)
Vue.component('payModel',payModel)
Vue.use(Router)

export default new Router({
  routes: [
    // 首页 
    {
      path: '/',
      name: 'index',
      component: index
    },
    // 商城
    {
      path: '/mall',
      name: 'mall',
      component: mall
    },
    // 朋友
    {
      path: '/friend',
      name: 'friend',
      component: friend
    },
    // 我的音乐
    {
      path: '/mine',
      name: 'mine',
      component: mine
    },
    // 账号
    {
      path: '/account',
      name: 'account',
      component: account
    },
    // 搜索
    {
      path: '/index/search',
      name: 'search',
      component: search
    },
    // 发现音乐
    {
      path: '/index/find-music',
      name: 'findMusic',
      component: findMusic
    },
    // 所有分类
    {
      path: '/index/all-type',
      name: 'allType',
      component: allType
    },
    // 所有分类下的歌单列表页
    {
      path: '/index/son-list',
      name: 'sonList',
      component: sonList
    },
    // 所有分类下的歌单详情页
    {
      path: '/index/son-detail',
      name: 'sonDetail',
      component: sonDetail
    },
    // 歌单列表点击进来的呃歌单首页
    {
      path: '/index/song-sheet',
      name: 'songSheet',
      component: songSheet
    },
    // 专辑详情页面
    {
      path: '/index/album-detail',
      name: 'albumDetail',
      component: albumDetail
    },
    // 视频列表页面
    {
      path: '/index/video-List',
      name: 'videoList',
      component: videoList
    },
    // 视频详情页面
    {
      path: '/index/video-Detail',
      name: 'videoDetail',
      component: videoDetail
    },
    // 批量操作页面
    {
      path: '/index/batch-operation',
      name: 'batchOperation',
      component: batchOperation
    },
    // 海选列表页面
    {
      path: '/index/sea-election',
      name: 'seaElection',
      component: seaElection
    },
    // 海选活动详情页面
    {
      path: '/index/sea-activity',
      name: 'seaActivity',
      component: seaActivity
    },
    // 购买鲜花页面
    {
      path: '/index/buy-flower',
      name: 'buyFlower',
      component: buyFlower
    },
    // 购买记录
    {
      path: '/index/buy-detail',
      name: 'buyDetail',
      component: buyDetail
    },
    // 支持的参赛者
    {
      path: '/index/my-support',
      name: 'mySupport',
      component: mySupport
    },
    // 参赛者详情页面
    {
      path: '/index/match-detail',
      name: 'matchDetail',
      component: matchDetail
    },
    // 参赛者详情页面
    {
      path: '/index/my-activity',
      name: 'myActivity',
      component: myActivity
    },
    // 填写报名信息
    {
      path: '/index/sign-up',
      name: 'signUp',
      component: signUp
    },
    // 搜索结果
    {
      path: '/index/search-result',
      name: 'searchResult',
      component: searchResult
    },
   // 搜索歌手
   {
    path: '/index/search-singer',
    name: 'searchSinger',
    component: searchSinger
  },
    // 音乐会员
    {
      path: '/index/music-vip',
      name: 'musicVip',
      component: musicVip
    },
    // 单曲购买
    {
      path: '/index/single-buy',
      name: 'singleBuy',
      component: singleBuy
    },
    // 评论
    {
      path: '/index/comment',
      name: 'comment',
      component: comment
    },
    // 评论回复
    {
      path: '/index/comment-reply',
      name: 'commentReply',
      component: commentReply
    },
    // 编辑歌单
    {
      path: '/mine/edit-sheet',
      name: 'editSheet',
      component: editSheet
    },
    // 选择标签
    {
      path: '/mine/choose-tips',
      name: 'chooseTips',
      component: chooseTips
    },
    // 订单确认
    {
      path: '/index/confirm-order',
      name: 'confirmOrder',
      component: confirmOrder
    }, 
    // 填写收货地址
    {
      path: '/index/edit-address',
      name: 'editAddress',
      component: editAddress
    }, 
    // 想看演出 
    {
      path: '/index/look-show',
      name: 'lookShow',
      component: lookShow
    }, 
    // 订单列表  
    {
      path: '/index/order-list',
      name: 'orderList',
      component: orderList
    }, 
    // 我的福利券
    {
      path: '/index/welfare',
      name: 'welfare',
      component: welfare
    }, 
    {
      path: '/index/ticket',
      name: 'ticket',
      component: ticket
    },
    {
      path: '/signin',
      name: 'signin',
      component: signin
    },
    {
      path: '/signin-record',
      name: 'signinRecord',
      component: signinRecord
    },
    {
      path: '/mylevel',
      name: 'mylevel',
      component: mylevel
    },
    {
      path: '/levelprivilege',
      name: 'levelprivilege',
      component: levelprivilege
    },
    {
      path: '/news',
      name: 'news',
      component: news
    },
    {
      path: '/singerhome',
      name: 'singerhome',
      component: singerhome
    },
    {
      path: '/userinfo',
      name: 'userinfo',
      component: userinfo
    },
    {
      path: '/setname',
      name: 'setname',
      component: setname
    },
    {
      path: '/setsignature',
      name: 'setsignature',
      component: setsignature
    },
    {
      path: '/setaccount',
      name: 'setaccount',
      component: setaccount
    },
    {
      path: '/mydynamic',
      name: 'mydynamic',
      component: mydynamic
    },
    {
      path: '/myattention',
      name: 'myattention',
      component: myattention
    },
    {
      path: '/addattention',
      name: 'addattention',
      component: addattention
    },
    {
      path: '/knowmen',
      name: 'knowmen',
      component: knowmen
    },
    {
      path: '/musicmen',
      name: 'musicmen',
      component: musicmen
    },
    {
      path: '/myfansi',
      name: 'myfansi',
      component: myfansi
    },
    {
      path: '/login',
      name: 'login',
      component: login
    },
    {
      path: '/forget',
      name: 'forget',
      component: forget
    },
    {
      path: '/register',
      name: 'register',
      component: register
    },
    {
      path: '/mymusic',
      name: 'mymusic',
      component: mymusic
    },
    {
      path: '/bemusicmen',
      name: 'bemusicmen',
      component: bemusicmen
    },
    {
      path: '/musicmenlivein',
      name: 'musicmenlivein',
      component: musicmenlivein
    },
    {
      path: '/mywelfare',
      name: 'mywelfare',
      component: mywelfare
    },
    {
      path: '/mycomments',
      name: 'mycomments',
      component: mycomments
    },
    {
      path: '/vipcenter',
      name: 'vipcenter',
      component: vipcenter
    },
    {
      path: '/openvip',
      name: 'openvip',
      component: openvip
    },
    {
      path: '/publicDynamic',
      name: 'publicDynamic',
      component: publicDynamic
    },
    {
      path: '/cates',
      name: 'cates',
      component: cates
    },
    {
      path: '/choosemusic',
      name: 'choosemusic',
      component: choosemusic
    },
    {
      path: '/aita',
      name: 'aita',
      component: aita
    },
    {
      path: '/dynamicDetails',
      name: 'dynamicDetails',
      component: dynamicDetails
    },
    {
      path: '/forwarding',
      name: 'forwarding',
      component: forwarding
    },
    {
      path: '/mycollection',
      name: 'mycollection',
      component: mycollection
    },
    {
      path: '/recentlyplay',
      name: 'recentlyplay',
      component: recentlyplay
    },
    {
      path: '/myradio',
      name: 'myradio',
      component: myradio
    },
    {
      path: '/hostapply',
      name: 'hostapply',
      component: hostapply
    },
    {
      path: '/radio',
      name: 'radio',
      component: radio
    },
    {
      path: '/radiotypes',
      name: 'radiotypes',
      component: radiotypes
    },
    {
      path: '/types',
      name: 'types',
      component: types
    },
    {
      path: '/radioranking',
      name: 'radioranking',
      component: radioranking
    },
    {
      path: '/setting',
      name: 'setting',
      component: setting
    },
    {
      path: '/localmusic',
      name: 'localmusic',
      component: localmusic
    },
    {
      path: '/localsingersong',
      name: 'localsingersong',
      component: localsingersong
    },
    {
      path: '/radionewlist',
      name: 'radionewlist',
      component: radionewlist
    },
    {
      path: '/radiotimelist',
      name: 'radiotimelist',
      component: radiotimelist
    },
    {
      path: '/radiodetail',
      name: 'radiodetail',
      component: radiodetail
    },
    {
      path: '/radiotadaygood',
      name: 'radiotadaygood',
      component: radiotadaygood
    },
    {
      path: '/radiorecommended',
      name: 'radiorecommended',
      component: radiorecommended
    },
    {
      path: '/about',
      name: 'about',
      component: about
    },
  ]
})
